package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.product.ProductSearchDTO;
import com.atguigu.spzx.model.entity.product.Product;
import com.atguigu.spzx.model.entity.product.ProductSku;
import com.atguigu.spzx.model.vo.product.ProductVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductMapper {
    List<ProductVO> selectByCondition(ProductSearchDTO productSearchDTO);

    void deleteById(Long id);

    void save(Product product);

    Product selectById(Long id);

    void updateById(Product product);

    void updateStatusById(@Param("id") Long id,
                          @Param("status") Integer status);

    void updateAuditStatusById(@Param("id") Long id, @Param("auditStatus") Integer auditStatus);
}
